From b3043e429b6b3851c321643066d85ae91ad3471b Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Tue, 17 Feb 2015 09:30:56 -0500 Subject: [PATCH] Avoid a crash in the inspector under wayland The Wayland-specific popover code in GtkWindow was not doing the right thing with the separate display connection we use for the inspector. --- gtk/gtkwindow.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gtk/gtkwindow.c b/gtk/gtkwindow.c index 2b1bcca936..54305d5a75 100644 --- a/gtk/gtkwindow.c +++ b/gtk/gtkwindow.c @@ -6326,7 +6326,7 @@ popover_realize (GtkWidget *widget, if (GDK_IS_WAYLAND_DISPLAY (gtk_widget_get_display (widget))) { attributes.window_type = GDK_WINDOW_SUBSURFACE; - parent_window = gdk_screen_get_root_window (gtk_widget_get_screen (widget)); + parent_window = gdk_screen_get_root_window (gtk_widget_get_screen (GTK_WIDGET (window))); } else #endif -- 2.30.2